Ext.define('MyApp.stores.UserStore', {
    extend    : 'Ext.data.Store',
    singleton : true,
    requires  : ['MyApp.models.UserModel'],

    model     : 'MyApp.models.UserModel',

    autoLoad: true,

    autoSync: true,
    proxy: {
        type: 'ajax',
        api: {
            read: '../demo/wfUser.aspx?action=read',
            create: '../demo/wfUser.aspx?action=create',
            update: '../demo/wfUser.aspx?action=update',
            destroy: '../demo/wfUser.aspx?action=delete'
        },
        reader: {
            type: 'json'//,
            //root: 'users',
            //successProperty: 'success'
        },
        writer: {
        type: 'json',
                writeAllFields: false
            }
    } 
});